home *** CD-ROM | disk | FTP | other *** search
/ PC World 2008 March / PCWorld_2008-03_cd.bin / v cisle / mediacoder / MediaCoder-0.6.1.4045.exe / htdocs / wmcfg / main.xul < prev    next >
Extensible Markup Language  |  2007-05-27  |  3KB  |  86 lines

  1. <?xml version="1.0"?>
  2. <!DOCTYPE window PUBLIC "-//MOZILLA//DTD XUL V1.0//EN" "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
  3.  
  4. <?xml-stylesheet href="chrome://global/skin/global.css" type="text/css"?>
  5. <?xml-stylesheet href="default.css" type="text/css"?>
  6.  
  7. <window id="wmcfg"
  8.         title="Windows Media Settings"
  9.         xmlns:html="http://www.w3.org/1999/xhtml"
  10.         xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  11.         xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  12.         width="360"
  13.         height="306"
  14.         onload="Init()"
  15.         >
  16.  
  17. <script language="javascript" src="wmcfg.js"></script>
  18.  
  19. <spacer height="5"/>
  20. <hbox flex="1">
  21. <spacer width="5"/>
  22. <vbox flex="1">
  23. <groupbox>
  24. <label class="titlebar" flex="1">Video Settings</label>
  25. <separator/>
  26. <hbox>
  27. <menulist id="videoCodecList" oncommand="SetPref('videoenc.wm.videoCodec', selectedItem.label)">
  28.     <menupopup>
  29.         <menuitem/>
  30.     </menupopup>
  31. </menulist>
  32. </hbox>
  33. <radiogroup id="videoMode" orient="horizontal" oncommand="onChangeVideoMode(this)">
  34.     <radio label="CBR"/>
  35.     <radio label="Quality Based VBR"/>
  36.     <radio label="Bitrate Based VBR"/>
  37. </radiogroup>
  38. <separator/>
  39. <deck id="bitrateDeck">
  40. <hbox align="center">
  41.     <label id="lblBitrate">Bitrate (KBps):</label>
  42.     <textbox id="vb" size="3" style="text-align:center" onchange="SetPref('overall.video.bitrate', value)"/>
  43.     <scrollbar flex="1" increment="16" pageincrement="128" maxpos="1600" onmouseup="previousSibling.value=getAttribute('curpos');previousSibling.onchange();"/>
  44.     <spacer width="10"/>
  45. </hbox>
  46. <hbox align="center">
  47.     <label id="lblBitrate">Quality (0~100):</label>
  48.     <textbox id="vq" size="3" style="text-align:center"/>
  49.     <scrollbar flex="1" maxpos="100" onmouseup="previousSibling.value=getAttribute('curpos');previousSibling.onchange();"/>
  50.     <spacer width="10"/>
  51. </hbox>
  52. </deck>
  53. </groupbox>
  54. <groupbox>
  55. <label class="titlebar">Audio Settings</label>
  56. <separator/>
  57. <hbox align="center">
  58. <label width="40">Codec:</label>
  59. <menulist id="codecList" oncommand="onChangeAudioCodec(this)">
  60.     <menupopup>
  61.         <menuitem/>
  62.     </menupopup>
  63. </menulist>
  64. </hbox>
  65. <hbox align="center">
  66. <label width="40">Mode:</label>
  67. <menulist id="modeList" oncommand="onChangeAudioMode(this)">
  68.     <menupopup>
  69.         <menuitem/>
  70.     </menupopup>
  71. </menulist>
  72. </hbox>
  73. <hbox align="center">
  74. <label width="40">Format:</label>
  75. <menulist id="formatList" oncommand="SetPref('videoenc.wm.audioFormat', selectedItem.label)">
  76.     <menupopup>
  77.         <menuitem/>
  78.     </menupopup>
  79. </menulist>
  80. </hbox>
  81. </groupbox>
  82. <button label="More Settings" onclick="window.open('/prefs/main.xul?path=videoenc.wm', 'bmarks', 'chrome,width=600,height=300,resizable=yes');"/>
  83. </vbox>
  84. <spacer width="5"/>
  85. </hbox>
  86. </window>